                        <div class="hd-box-r">
                            <div class="hd-tips">
                                <div class="title"><h3>本周热门活动</h3><a href="active_search.php">更多&gt;&gt;</a></div>
                                <div class="hot-hd">
								
								<?php	
										$i = 1;
										if(isset($classid)){
										$date=date('Y-m-d');  //当前日期

										$first=1; //$first =1 表示每周星期一为开始日期 0表示每周日为开始日期

										$w=date('w',strtotime($date));  //获取当前周的第几天 周日是 0 周一到周六是 1 - 6 

										$now_start=date('Y-m-d',strtotime("$date -".($w ? $w - $first : 6).' days')); //获取本周开始日期，如果$w是0，则表示周日，减去 6 天

										$now_end=date('Y-m-d',strtotime("$now_start +6 days"));  //本周结束日期



										$news_sql = "select * from kboy_forum_active where date(active_end_time)>='$THIS_TODAY_DATE' and (date(active_start_time)>='$now_start' and date(active_start_time)<='$now_end') and active_model = 0 and active_state = 0 and active_bigclass=135 order by active_top desc,active_order desc, id desc limit 4";
										}
										else{
										$news_sql = "select * from kboy_forum_active order by active_top desc,active_order desc, id desc limit 4";
										}
										$news_rows = mysql_query($news_sql);
										while($news_rs = mysql_fetch_array($news_rows)){
								?>
									   
										
									<dl>
                                        <dt><a href="activeview.php?newsid=<?=$news_rs['id']?>"><img src="<?php  
                                       			 $news_rss = explode(',',$news_rs['active_sollimg']);
												if($news_rss){
													echo $news_rss[0];
												}else{
													echo $news_rs['active_sollimg'];
												}
                                        ?>" width="90" height="61" alt=""/></a></dt>
                                        <dd>
                                            <div class="hot-title"><a href="activeview.php?newsid=<?=$news_rs['id']?>"><?=$news_rs['active_title']?></a></div>
                                            <p>活动地址：<?=$news_rs['active_end_prov']?><?=$news_rs['active_end_city']?></p>
                                            <p>活动时间：<?=date('y-m-d',strtotime($news_rs['active_start_time']))?></p>
                                        </dd>
                                    </dl>
								<?php
										$i ++ ;
										}
								?>
                                   
                                </div>
                            </div>
                            <div class="hd-tips">
                                <div class="title"><h3>领队风采</h3><a href="leader.php">更多&gt;&gt;</a></div>
                                <div class="leader-face">
								   <?php
										$user_sql = "select * from kboy_user where user_leader=1 order by user_activetime desc limit 10";
										$user_rows = mysql_query($user_sql);
										while($user_rs = mysql_fetch_array($user_rows)){
									?>
                                            
											
											<dl>
												<dt><a href="forum_news.php?uid=<?=$user_rs['uid']?>"><img src="<?=$user_rs['user_face']?>" width="68" height="68" alt=""/></a></dt>
												<dd>
													<p><a href="forum_news.php?uid=<?=$user_rs['uid']?>"><?=getUserNickName($user_rs['uid'])?></a></p>
													<p><span class="sex">性别：<?php
															 if($user_rs['user_sex'] == 1){
															 	echo "男";
															 }elseif($user_rs['user_sex'] == 0){
															 	echo "女";
															 }else{
															 	echo "保密";
															 }
															 ?></span>
															 <!--<span>好评率：100%</span>-->
															 </p>
													<p><span>带队次数：<?=$user_rs['user_activetime']?>次</span></p>
												</dd>
											</dl>
									<?php
										}
									?>
                                   
                                </div>
                            </div>
							
						<?php
							$piclink_sql = "select * from kboy_piclink where news_bigclass=195 order by news_top desc,news_order desc, id desc limit 3";
							$piclink_rows = mysql_query($piclink_sql);
							while($piclink_rs = mysql_fetch_array($piclink_rows)){
								if($piclink_rs['news_tourls']){
									echo "<div class=\"bd-ads\"><a href=\"".$piclink_rs['news_tourls']."\" target=\"_blank\"><img src=\"".$piclink_rs['news_pic']."\"></a></div>";
								}else{
									echo "<div class=\"bd-ads\"><a href=\"javascript:void(0);\"><img src=\"".$piclink_rs['news_pic']."\"></a></div>";
								}
							}
						?>
                        </div>